<?php echo '<?xml version="1.0" encoding="utf-8"?>' . "\n"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<link rel="stylesheet" type="text/css" href="/styles/main.css" media="all" />
<?php
    if (isset($this->add_styles)) {
        foreach ($this->add_styles as $file) {
            echo '<link rel="stylesheet" type="text/css" href="' . $file . '" media="all" />' . "\n";
        }
    }
?>
<script type="text/javascript" src="<?php echo $this->rootUrl(); ?>js/prototype.js"></script>

<script type="text/javascript" src="<?php echo $this->rootUrl(); ?>js/baseZF/basePrototype.js"></script>

<script type="text/javascript" src="<?php echo $this->rootUrl(); ?>js/baseZF/library/md5.js"></script>
<script type="text/javascript" src="<?php echo $this->rootUrl(); ?>js/baseZF/library/dhtmlHistory.js"></script>

<script type="text/javascript" src="<?php echo $this->rootUrl(); ?>js/baseZF/baseZF.js"></script>
<script type="text/javascript" src="<?php echo $this->rootUrl(); ?>js/baseZF/baseAjax.js"></script>



<?php
    if (isset($this->add_javascripts)) {
        foreach ($this->add_javascripts as $file) {
            echo '<script type="text/javascript" src="' . $file . '"></script>' . "\n";
        }
    }
?>
<title><?php $this->display($this->title ? $this->title : 'BaseZF') ?></title>
</head>
<?php
    if (isset($this->mainClass) && $this->mainClass != '') {
        echo '<body class="' . Fotolia::escape($this->mainClass) . '">' . "\n";
    } else {
        echo '<body>' . "\n";
    }
?>
